package unipd.esp1112.pro;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;


/**
 * Entry activity of the application
 * 
 * @author andrea basso, federico lancerin, alex tomasello
 * 
 */
public class PersonalRunnerIntro extends Activity {
	/** Called when the activity is first created. */

	/**
	 * timer set to wait 2 seconds on the splash screen image
	 */
	private Timer time;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.intro);

		time = new Timer();
		time.schedule(new TimerTask() {
			@Override
			public void run() {
				Intent myIntent = new Intent(getApplicationContext(), SelezioneProfili.class);
				startActivityForResult(myIntent, 0);
				time.cancel();
				finish();
			}
		}, 2000);

	}
}